﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="dang_ky_nguoi_dung.ascx.cs" Inherits="Admin_Module_dang_ky_nguoi_dung" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<link rel="Stylesheet" href="/Css/Admin.css" type="text/css"  />
<input type="hidden" id="txtUserID" runat="server" />
<table style="text-align:left">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <tr>
        <td>Tên Người Dùng</td>
        <td><asp:TextBox CssClass="AdminTextbox" runat="server" ID="txtUserName"></asp:TextBox></td>
        <td><asp:RequiredFieldValidator ErrorMessage="Bạn Phải Nhập Tên Người Dùng" runat="server" ID="require1" ControlToValidate="txtUserName"></asp:RequiredFieldValidator></td>
    </tr>
    
    <tr>
        <td>Email</td>
        <td>
            <asp:TextBox CssClass="AdminTextbox" ID="txtEmail" runat="server"></asp:TextBox>
        </td>
        <td>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ErrorMessage="Bạn Phải Nhập email" 
                ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
        </td>
    </tr>
    
    <tr>
        <td>Họ Và Tên</td>
        <td>
            <asp:TextBox CssClass="AdminTextbox" ID="txtFirstName" runat="server"></asp:TextBox>
        </td>
        <td><asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" 
                ErrorMessage="Bạn Phải Nhập Họ Và Tên Đệm" 
                ControlToValidate="txtFirstName"></asp:RequiredFieldValidator></td>
    </tr>
    
    <tr class="hidden_control">
        <td>Last Name</td>
        <td>
            <asp:TextBox CssClass="AdminTextbox" ID="txtLastName" runat="server"></asp:TextBox>
        </td>
        <td><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ErrorMessage="Bạn Phải Nhập Tên" 
                ControlToValidate="txtLastName"></asp:RequiredFieldValidator></td>
    </tr>
    
    <tr >
        <td>Mật Khẩu</td>
        <td>
            <asp:TextBox CssClass="AdminTextbox" TextMode="Password" ID="txtPassword" runat="server"></asp:TextBox>
        </td>
        <td><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ErrorMessage="Bạn Phải Nhập Mật Khẩu" 
                ControlToValidate="txtPassword"></asp:RequiredFieldValidator></td>
    </tr>
    
    <tr>
        <td>
            Nhập Lại Mật khẩu
        </td>
        <td>
            <asp:TextBox CssClass="AdminTextbox" TextMode="Password" ID="txtRePassword" runat="server"></asp:TextBox>
        </td>
        
        <td>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword" ControlToValidate="txtRePassword" ErrorMessage="Mật khẩu không được khác nhau"></asp:CompareValidator>
        </td>
    </tr>
    
    <tr>
        <td>
            Địa Chỉ
        </td>
        <td>
            <asp:TextBox CssClass="AdminTextbox" ID="txtAddress" runat="server"></asp:TextBox>
        </td>
        <td>
        </td>
    </tr>
    
    <tr>
        <td>
            Ngày Sinh
        </td>
        <td>
            <telerik:RadDatePicker ID="txtBirthday" runat="server">
            </telerik:RadDatePicker>
        </td>
        <td>
        </td>
    </tr>
    
    <tr>
        <td>Giới Tính</td>
        <td>
            <asp:RadioButtonList ID="cboSex" runat="server">
                <asp:ListItem Text="Nam" Value="1"></asp:ListItem>
                <asp:ListItem Text="Nữ" Value="0"></asp:ListItem>
            </asp:RadioButtonList>
        </td>
        <td></td>
    </tr>
    
    <tr>
        <td>Điện thoại</td>
        <td>
            <asp:TextBox ID="txtMobile" runat="server" ></asp:TextBox>
        </td>
        <td></td>
    </tr>
    
    <tr class="hidden_control">
        <td>
            Tên Công Ty
        </td>
        <td>
            <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
        </td>
        <td>
        </td>
    </tr>
    
    <tr class="hidden_control">
        <td>Địa Chỉ Công Ty</td>
        <td>
            <asp:TextBox ID="txtCompanyAddress" runat="server"></asp:TextBox>
        </td>
        <td></td>
    </tr>
    
    <tr class="hidden_control">
        <td>
            Fax
        </td>
        <td>
            <asp:TextBox CssClass="AdminTextbox" ID="txtFax" runat="server"></asp:TextBox>
        </td>
        <td>
        </td>
    </tr>
    
    <tr class="hidden_control">
        <td>
           Chức Vụ
        </td>
        <td>
            <asp:TextBox CssClass="AdminTextbox" ID="txtPosition" runat="server"></asp:TextBox>
        </td>
        <td>
        </td>
    </tr>
    
    <tr class="hidden_control">
        <td>
           Công Việc
        </td>
        <td>
            <asp:TextBox CssClass="AdminTextbox" ID="txtJob" runat="server"></asp:TextBox>
        </td>
        <td>
        </td>
    </tr>
   
    
    <tr>
        <td colspan="3" align="center">
            <asp:Button CssClass="AdminSaveButton" runat="server" ID="btnCreate" OnClick="btnCreate_Click" Text="Thêm Mới" />
            <asp:Button CssClass="AdminCancelButton" runat="server" ID="btnReset" OnClick="btnReset_Click" Text="Nhập Lại" />            
        </td>
    </tr>
</table>

<asp:Label runat="server" CssClass="AdminMessage" ID="lblMessage"></asp:Label>